
package com.zhiwei.codesecurity.common.webservice.checkmarx.portal.v7;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>CxWSPackageTypeEnum的 Java 类。
 * 
 * <p>以下模式片段指定包含在此类中的预期内容。
 * <p>
 * <pre>
 * &lt;simpleType name="CxWSPackageTypeEnum"&gt;
 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt;
 *     &lt;enumeration value="Cx"/&gt;
 *     &lt;enumeration value="Corporate"/&gt;
 *     &lt;enumeration value="Project"/&gt;
 *     &lt;enumeration value="Team"/&gt;
 *   &lt;/restriction&gt;
 * &lt;/simpleType&gt;
 * </pre>
 * 
 */
@XmlType(name = "CxWSPackageTypeEnum")
@XmlEnum
public enum CxWSPackageTypeEnum {

    @XmlEnumValue("Cx")
    CX("Cx"),
    @XmlEnumValue("Corporate")
    CORPORATE("Corporate"),
    @XmlEnumValue("Project")
    PROJECT("Project"),
    @XmlEnumValue("Team")
    TEAM("Team");
    private final String value;

    CxWSPackageTypeEnum(String v) {
        value = v;
    }

    public String value() {
        return value;
    }

    public static CxWSPackageTypeEnum fromValue(String v) {
        for (CxWSPackageTypeEnum c: CxWSPackageTypeEnum.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }

}
